package com.bawei.mall.product.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bawei.mall.product.mapper.MallProductGaoMapper;
import com.bawei.mall.product.domain.MallProductGao;
import com.bawei.mall.product.service.IMallProductGaoService;

/**
 * gaoService业务层处理
 *
 * @author duanguohong
 * @date 2024-07-02
 */
@Service
public class MallProductGaoServiceImpl implements IMallProductGaoService
{
    @Autowired
    private MallProductGaoMapper mallProductGaoMapper;

    /**
     * 查询gao
     *
     * @param id gao主键
     * @return gao
     */
    @Override
    public MallProductGao selectMallProductGaoById(Long id)
    {
        return mallProductGaoMapper.selectMallProductGaoById(id);
    }

    /**
     * 查询gao列表
     *
     * @param mallProductGao gao
     * @return gao
     */
    @Override
    public List<MallProductGao> selectMallProductGaoList(MallProductGao mallProductGao)
    {
        return mallProductGaoMapper.selectMallProductGaoList(mallProductGao);
    }

    /**
     * 新增gao
     *
     * @param mallProductGao gao
     * @return 结果
     */
    @Override
    public int insertMallProductGao(MallProductGao mallProductGao)
    {
        return mallProductGaoMapper.insertMallProductGao(mallProductGao);
    }

    /**
     * 修改gao
     *
     * @param mallProductGao gao
     * @return 结果
     */
    @Override
    public int updateMallProductGao(MallProductGao mallProductGao)
    {
        return mallProductGaoMapper.updateMallProductGao(mallProductGao);
    }

    /**
     * 批量删除gao
     *
     * @param ids 需要删除的gao主键
     * @return 结果
     */
    @Override
    public int deleteMallProductGaoByIds(Long[] ids)
    {
        return mallProductGaoMapper.deleteMallProductGaoByIds(ids);
    }

    /**
     * 删除gao信息
     *
     * @param id gao主键
     * @return 结果
     */
    @Override
    public int deleteMallProductGaoById(Long id)
    {
        return mallProductGaoMapper.deleteMallProductGaoById(id);
    }
}
